package com.my.biz.domain;

import java.io.Serializable;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;
 import java.lang.Boolean;
 import java.lang.Integer;
 import java.lang.Long;
 import java.lang.String;
 import java.util.Date;
 /**
 * 
 * @描述： 实体Bean
 * 
 * @创建人： ch
 * 
 * @创建时间：2017年07月04日 21:10:39
 * 
 */
public class GroupInfoDO implements Serializable {
	
	private static final long serialVersionUID = -788082806731529941L;
	
    /**
     *
     */
	private Integer id;
	
    /**
     *群所属人
     */
	private String uid;
	
    /**
     *群号码
     */
	private Long groupId;
	
    /**
     *qq群名称
     */
	private String groupName;
	
    /**
     *创建时间
     */
	private Date createTime;
	
    /**
     *是否删除 0=不是|1=是
     */
	private Boolean delStatus;
	
	
	/**
     *机器人号码
     */
	private Long botId;
	
	/**
	 * 机器人角色 owner 或 admin 或 member
	 */
	private String role;
	
	/**
	 * 机器人状态 0=初始化|1=加好友|2=加群
	 */
	private Integer status;


	public GroupInfoDO() {
		super();
	}
	
	public GroupInfoDO(Integer id,String role,String groupName) {
		super();
		this.id=id;
		this.role = role;
		this.groupName = groupName;
	}

	public GroupInfoDO(Integer id,Boolean delStatus, Integer status) {
		super();
		this.id=id;
		this.delStatus = delStatus;
		
		this.status = status;
	}



	public GroupInfoDO(Long groupId) {
		super();
		this.groupId = groupId;
	}



	public GroupInfoDO(String uid, Long groupId) {
		super();
		this.uid = uid;
		this.groupId = groupId;
	}

	


	public GroupInfoDO(Long groupId, Long botId) {
		super();
		this.groupId = groupId;
		this.botId = botId;
	}


	public GroupInfoDO(String uid, Long groupId, Long botId) {
		super();
		this.uid = uid;
		this.groupId = groupId;
		this.botId = botId;
		this.createTime = new Date(System.currentTimeMillis());
	}



	public void setId(Integer id){
		this.id = id;
	}
	
	public Integer getId(){
		return id;
	}
	
	public void setUid(String uid){
		this.uid = uid;
	}
	
	public String getUid(){
		return uid;
	}
	
	public void setGroupId(Long groupId){
		this.groupId = groupId;
	}
	
	public Long getGroupId(){
		return groupId;
	}
	
	public void setGroupName(String groupName){
		this.groupName = groupName;
	}
	
	public String getGroupName(){
		return groupName;
	}
	
	public void setCreateTime(Date createTime){
		this.createTime = createTime;
	}
	
	public Date getCreateTime(){
		return createTime;
	}
	
	public void setDelStatus(Boolean delStatus){
		this.delStatus = delStatus;
	}
	
	public Boolean isDelStatus(){
		return delStatus;
	}
	
	
	

	public Long getBotId() {
		return botId;
	}



	public String getRole() {
		return role;
	}



	public Integer getStatus() {
		return status;
	}



	public void setBotId(Long botId) {
		this.botId = botId;
	}



	public void setRole(String role) {
		this.role = role;
	}



	public void setStatus(Integer status) {
		this.status = status;
	}



	@Override
	public String toString() {
		return JSON.toJSONString(this, SerializerFeature.UseISO8601DateFormat);
	}
}

